package com.example.sps.pojo.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ProjectName: Sps
 * @Titile: EmpStatusDTO
 * @Author: nency
 * @Description: TODO
 */
@Data
public class EmpStatusDTO {
    @NotNull(message = "员工编号不能为空")
    private Integer empId;
    @NotNull(message = "员工状态不能为空")
    @Max(value = 1,message = "状态值只能0-1")
    @Min(value = 0,message = "状态值只能0-1")
    private Integer status;
}
